<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>操作DOM</title>
</head>
<body>
<h1></h1>
<p id="my-content0">aaaaaa</p>
<p class="my-content1">bbbbbb</p>
<p class="my-content1">cccccc</p>

<script>
    let element = document.getElementById("my-content0");
    console.log(element.constructor);
    let element1 = document.getElementsByClassName("my-content1");
    console.log(element.constructor);
    for (let i = 0; i < element1.length; i++) {
        let e = element1.item(i);
        console.log(e.innerHTML);
    }
</script>
</body>
</html>